package com.model;

import java.util.Date;

public class Guess {

    private String guessCategory;
    private String guessContent;
    private String guessCreatedBy;
    private String guessExpiryDate;
    private int spotOnCount;
    private int deadWrongCount;
    private Date currentDateTime;
    private boolean active;

   public void setActive(boolean active){

        this.active = active;
    }

    public boolean isActive(){

        return active;
    }

    public String getGuessCategory() {
        return guessCategory;
    }

    public void setGuessCategory(String guessCategory) {
        this.guessCategory = guessCategory;
    }

    public String getGuessContent() {
        return guessContent;
    }

    public void setGuessContent(String guessContent) {
        this.guessContent = guessContent;
    }

    public String getGuessExpiryDate() {
        return guessExpiryDate;
    }

    public void setGuessExpiryDate(String guessExpiryDate) {
        this.guessExpiryDate = guessExpiryDate;
    }

    public java.sql.Date getCurrentDateTime() {
        this.currentDateTime = new java.util.Date();
        return new java.sql.Date(currentDateTime.getTime());
    }

    public void setCurrentDateTime() {
        this.currentDateTime = new java.util.Date();
    }

    public int getSpotOnCount() {
        return spotOnCount;
    }

    public void setSpotOnCount(int spotOnCount) {
        this.spotOnCount = spotOnCount;
    }

    public int getDeadWrongCount() {
        return deadWrongCount;
    }

    public void setDeadWrongCount(int deadWrongCount) {
        this.deadWrongCount = deadWrongCount;
    }

    public String getGuessCreatedBy() {
        return guessCreatedBy;
    }

    public void setGuessCreatedBy(String guessCreatedBy ) {
        this.guessCreatedBy = guessCreatedBy;
    }

    @Override
    public String toString() {
        return "Guess Category : \t" + guessCategory + "\n" + "Guess : \t\t" + guessContent + "\n" + "Guess Expires On : " + guessExpiryDate + "\n" + "Guess Created By: \t" + guessCreatedBy + "\n" + "Agree Count :" + " " + spotOnCount + "\n" + "Disagree Count :" + deadWrongCount + "\n\n";
    }
}
